{literal} 
<script src="{/literal}{$gvar.l_global}{literal}js/index.js"></script>
{/literal} 

{if isset($smarty.session.usuario) && $smarty.get.option neq 'logout'}
<div class="square">
    <div id="myCarousel" class="carousel slide">
            <ol class="carousel-indicators">
            <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
            <li data-target="#myCarousel" data-slide-to="1"></li>
            <li data-target="#myCarousel" data-slide-to="2"></li>
            </ol>
            <!-- Carousel items -->
            {literal} 
            <div class="carousel-inner" id="divCarrouselInner">
                <div class="active item"><img alt="" src="{/literal}{$gvar.l_global}{literal}images/home/banner1.png"></div>
                <div class="item"><img class="overflowH" alt="" src="{/literal}{$gvar.l_global}{literal}images/home/banner2.png"></div>
                <div class="item"><img class="overflowH" alt="" src="{/literal}{$gvar.l_global}{literal}images/home/banner3.png"></div>
                <div class="item"><img class="overflowH" alt="" src="{/literal}{$gvar.l_global}{literal}images/home/banner4.png"></div>
                <div class="item"><img class="overflowH" alt="" src="{/literal}{$gvar.l_global}{literal}images/home/banner5.png"></div>
            </div>
            {/literal} 
            <!-- Carousel nav -->
            <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
            <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
       </div>
</div>
{else}   
    
    <div id="contentFormLoginIndex">
        <div id="auxiliar2">
        <div id="labelInitSesion">Inicia sesión y acceder a la aplicación</div>
        <div id ="containerLogin">
            <div id="imagenForLoggin">

            </div>
            <div id="formularioInico">
                <form id="formularioLogin"action="{$gvar.l_index}?option=login" method="post" name="login" class="form-horizontal">
                    <div class="control-group" id="auxiliar1">
            <!--        <a name="login">{$gvar.n_login}</a>-->
                        <!--<label class="control-label80">User:</label>-->
                        <div class="controlsleft90">
                            <input size="18" name="username" required="required" type="text" placeholder="Usuario">
                        </div>
                    </div>
                    <div class="control-group">
                    <!--<label class="control-label80">Password:</label>-->
                    <div class="controlsleft90">
                        <input size="18" name="password" required="required" type="password" placeholder="Contraseña">
                    </div>
                    </div>
                    <div class="control-group text-center" id="buttonLoginIndex">
                        <input class="btn btn-primary" value="Iniciar Sesión" type="submit" />
                    </div>
                    {if isset($dataError)}    
                    <div class="control-group">
                        <span class="alert alert-danger">{$dataError}</span>
                        </div>
                    {/if}
                </form>
            </div>
        </div>
        </div>
    </div>
{/if}